//+--------------------------------------------------------------------
//| Copyright(c) 2012 - an.vuongngocduy					
//| This file is a part of Compact Game Engine (CGE)	
//+--------------------------------------------------------------------
#include "cgeFramework.h"
#include "cgeCanvasWin.h"

namespace cge
{

#ifdef WIN32
	LRESULT CALLBACK Framework::WinProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
	{
		CanvasWin* cw = (CanvasWin*)GetWindowLong(hWnd, GWL_USERDATA);
	
		switch(uMsg)
		{
		case WM_CLOSE:
			PostQuitMessage(0);
			return 0;
			
		case WM_SIZE:
			return 0;

		case WM_MOVE:
			return 0;

		case WM_PAINT:
			break;
		}
		return DefWindowProc(hWnd, uMsg, wParam, lParam);
	}
#endif

}